// apps/h5/src/stores/useBaseData.ts
import { defineStore } from "pinia"
import { ref, type Ref } from "vue"
import { useLocalStorage } from "@vueuse/core"
// import { getCmConfigList } from "../api" // 根据实际目录调整路径
// import type BeanCmConfig from "../bean/cmConfig/BeanCmConfig" // 同上

export const useUserStore = defineStore("user", () => {
  // 定义 Store 状态
  const user = ref({})
  const token: Ref<string> = useLocalStorage("token", "")

  return {
    user,
    token,
  }
})
